import {
    SET_LOADING_STATUS,
    SET_LIST_LOADING_STATUS,
    SET_NAVBAR_STATUS,
    SET_TABBAR_STATUS
} from '../mutation-types';

/**
 * ({dispatch}): Es6 destructuring "
 * @param  {[type]} options.dispatch [description]
 * @param  {[type]} status           [description]
 * @return {[type]}                  [description]
 */
const setLoadingStatus = ({ dispatch }, status) => {
    dispatch(SET_LOADING_STATUS, status)
}

const setListLoadingStatus = ({ dispatch }, status) => {
    dispatch(SET_LIST_LOADING_STATUS, status)
}

const setNavBarStatus = ({ dispatch }, status) => {
    dispatch(SET_NAVBAR_STATUS, status)
}
const setTabBarStatus = ({ dispatch }, status) => {
    dispatch(SET_TABBAR_STATUS, status)
}
export {
    setLoadingStatus,
    setListLoadingStatus,
    setNavBarStatus,
    setTabBarStatus
}
